home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.8 KB | 48 lines | [TEXT/GEOL] |
-
- Item 0400793 20-Dec-90 05:32PST
-
- From: POWERUP.ENG Power Up Software,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- ------------------------------------------------------------------------------
-
- Sub: Bug In MacApp 2.0.1
-
- Attn: MacApp.Tech$
- SentBy: James Plamondon
- Subject: Bug In MacApp 2.0.1
- Gentlepersons,
-
- I have discovered what I consider to be a bug in MacApp 2.0.1.
-
- In TGridView.SetRowHeight() and TGridView.SetColWidth(), only the "new" areas
- are invalidated, not the "old" areas, with the result that, if the grid view's
- size determiners are anything other than sizeVariable, the old data is not
- erased from the screen as it should be.
-
- Example: Consider the case of a grid view with resizeable columns. The
- view's width determiner is set to sizeSuperview. This allows the program to
- draw tracking feedback when the right-hand column is being widened, without it
- being clipped away. (If the width determiner were sizeVariable, then the grid
- view's size would always be set to the bounds of the grid — leaving no room at
- the right for drawing the indicator of the new column width, as it's being
- dragged out.)
-
- Solution: In TGridView.SetRowHeight() and TGridView.SetColWidth(), invalidate
- both before and after the call to AdjustSize(). Just copy the two lines that
- invalidate after AdjustSize(), and plop a copy into the code above the call to
- AdjustSize().
-
- I looked in Tech Note #280 before writing this, and it wasn't there, so I have
- some hope that I'm not wasting your time with a well-known bug. If, however,
- this is one of the bugs you've grown to know and love, please do not hold it
- against me that I took this long to find it.
-
- Looking forward to a bug-free MacApp (in my dotage), I remain
-
- Yours,
-
- James Plamondon
-
-